package com.perye.dokit.service;

import com.perye.dokit.dto.WeWeddingStyleDto;
import com.perye.dokit.entity.WeWeddingStyle;
import com.perye.dokit.mapper.dao.DaoSupport;
import com.perye.dokit.query.WeWeddingStyleQueryCriteria;
import com.perye.dokit.utils.pageData.PageData;
import org.springframework.data.domain.Pageable;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;
import java.util.Map;


public interface WeWeddingStyleService {
//插入图片
 void insterImg(PageData pageData)throws Exception;
//更新图片
void delWeVideoPicture(PageData pageData)throws Exception;

    List<PageData> selectWeddingStyle(PageData pageData) throws Exception;

    /**
    * 查询数据分页
    * @param criteria 条件
    * @param pageable 分页参数
    * @return Map<String,Object>
    */
    Map<String,Object> queryAll(WeWeddingStyleQueryCriteria criteria, Pageable pageable);

    /**
    * 查询所有数据不分页
    * @param criteria 条件参数
    * @return List<WeWeddingStyleDto>
    */
    List<WeWeddingStyleDto> queryAll(WeWeddingStyleQueryCriteria criteria);

    /**
    * 根据ID查询
    * @param id ID
    * @return WeWeddingStyleDto
    */
    WeWeddingStyleDto findById(String id);

    /**
    * 创建
    * @param resources /
    * @return WeWeddingStyleDto
    */
    WeWeddingStyleDto create(WeWeddingStyle resources);

    /**
    * 编辑
    * @param resources /
    */
    void update(WeWeddingStyle resources);

    /**
    * 导出数据
    * @param all 待导出的数据
    * @param response /
    * @throws IOException /
    */
    void download(List<WeWeddingStyleDto> all, HttpServletResponse response) throws IOException;

    /**
    * 多选删除
    * @param ids /
    */
    void deleteAll(String[] ids);
}
